



#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif

#include 	"stm32f0xx_hal.h"
#include 	"stm32f0xx_hal_gpio_ex.h"
#include	"stm32f0xx_hal_rcc_ex.h"
#include	"Stm32f0xx_hal_rcc.h"
#include    "Stm32f0xx_hal_adc_ex.h"
#include    "stm32f0xx_hal_tim.h"
#include    "string.h"
#include    "stdio.h"
#include 	"math.h"
typedef unsigned char     uint8;
typedef unsigned short    uint16;
typedef unsigned long     uint32;
typedef unsigned long long u64;
typedef unsigned long u32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef long long s64;
typedef long s32;
typedef short s16;
typedef char s8;
typedef char c8;
typedef enum {FALSE = 0, TRUE = !FALSE} bool;
void Error_Handler(void);
extern	TIM_HandleTypeDef htim3;
#define	BUZZER_ON				HAL_TIM_PWM_Start(&htim3,TIM_CHANNEL_1)
#define	BUZZER_OFF           	do{HAL_TIM_PWM_Stop(&htim3,TIM_CHANNEL_1);\
								   HAL_GPIO_WritePin(GPIOC,GPIO_PIN_6,0);\
								  }while(0)
#ifdef __cplusplus
}
#endif
#endif 
